org.jhotdraw.app.action
Class FocusAction
java.lang.Object
javax.swing.AbstractAction
org.jhotdraw.app.action.FocusAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
public class FocusAction
- extends javax.swing.AbstractAction
Requests focus for a Frame.
- Version:
- $Id: FocusAction.java 527 2009-06-07 14:28:19Z rawcoder $
- Author:
- Werner Randelshofer
- See Also:
- Serialized Form
|
Field Summary |
static java.lang.String |
ID
|
private java.beans.PropertyChangeListener |
ppc
|
private View |
view
|
| Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
| Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
view
private View view
ppc
private java.beans.PropertyChangeListener ppc
FocusAction
public FocusAction(View view)
- Creates a new instance.
dispose
public void dispose()
setView
public void setView(View newValue)
getValue
public java.lang.Object getValue(java.lang.String key)
- Specified by:
getValue in interface javax.swing.Action- Overrides:
getValue in class javax.swing.AbstractAction
getTitle
private java.lang.String getTitle()
getFrame
private javax.swing.JFrame getFrame()
getRootPaneContainer
private java.awt.Component getRootPaneContainer()
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent evt)